======================Pipemania v2.3 for ION==========================
===========================by Texameije===============================
======================texameije@belgacom.net==========================
======================================================================
===============================c2002==================================

Read the entire file because there are lots of hints in it!

Technical information:
 You can play pipemania if you have ION installed on your calculator
 (you can find it on www.ticalc.org) and this file:
    zpipeion.83p 2854 bytes

Features:
 -Possibility to take a screenshot at game over
 -Possibility to reset highscores
 -Possibility to turn power off in pause mode
 -Different highscore for each difficulty
 -As few bytes as possible, but with good gameplay and graphics!
 -Honest random routine!

Purpose:
 Make the pipe as long as possible, before the water leaks out!

How to play?
 Move the cursor around the playfield with the arrow keys. With 2nd, 
 you place the lowest block from the preview on the right.
 When you start playing, the line between the playfield and the preview 
 will decrease. If it's totally gone, the water starts leaking from the 
 little tube in the middle of the playfield. Make sure you have got a 
 great network of tubes to lead the water through. (at a crossing, the 
 water goes straight, then you can run another time through it in the 
 other direction)

Difficulty menu:
 When asked for fluidity level, 1 is easiest (water is slow) and 3 is 
 difficult (water = fast). Hit [1], [2] or [3] to select. The marker 
 ">" on the left points to the last chosen option. You can't move it in 
 the menu (that should kost too much bytes)! Just hit [Enter] to select
 that difficulty.

Save screen:
 When the game is over, your are asked if you want a screenshot of 
 your tube in Pic0. Press [1] if you want it or press [log],[mode]
 or [enter] if you don't.

SCORE:
 -You get 5 points per tube that's filled with water
 -You lose 5 points when you place a new tube over a tube you placed 
  before (may not already be filled with water).
 -When the game is over (=when the water has reached the end of your 
  tube), you lose 5 points per tube that is not filled with water

Controls:
 -in the main menu:
   Enter  = start game
   Mode   = quit to Ion
   Clear  = clear all highscores
 -in the difficulty menu:
   1/2/3  = choose difficulty
   Enter  = select last chosen difficulty
 -in game:
   Arrows = move cursor
   2nd   = place tube
   Del    = if you're ready (you can't build further) but the water
            hasn't reached the end of the pipe, press del to speed up 
            the water.
   Clear  = pause
 -in pause menu:
   Enter  = continue
   Mode   = go to main menu
   Del    = turn power off
 -when asked for yes or no:
   [1]    = yes
   [log]  = no
    ( because these keys stand for [alpha][Y] and [alpha][N] )

Hints:
 -Because you can lose a lot of points at the end of the game with
  unused tubes, you really have to place tubes "that you don't need at 
  a certain moment" also in a good position to use them later, so that 
  you will get those points.
 -Don't forget that if you use a cross-tube, you can earn double points 
  because the water can run twice through it! Don't spoil this 
  opportunities, it can lead you to a high score!

Problems or bugs?
 I think that this program is bug-free, but you never 
 know for sure! If you find one, mail me at texameije@belgacom.net 

Pipemania is also available in BASIC for ti-83, if you want this
 oldie, mail me!

Source code?
 If you want the source code, mail me and I'll think about it...

Version history:
 v2.3: 18 april 2002
       2854 bytes (!)
       reviewed the whole source, decreased number of bytes drastically
       added reset highscores feature
       added power off feature
       added my own 'honest' random routine (because all other random
          routines are very bad, I made a good one)
       second public release
 v2.2: imaginary date: 18 march 2002
       +/-3500 bytes
       added screenshot feature
       added difficulty levels
       added highscores
       added speed up water feature
 v2.1: 18 february 2002
       2704 bytes
       ported to Ion
       new main menu with less bytes
       reviewed keys: simular to Ion, the keys are chosen in a way so
                      that it's possible to fly trough the menu, for
                      example: when game over: 3x Enter = restart game
                                               3x Mode  = go to TI-OS
       first public release
 v2.0: 2001
       added main menu, reviewed gameplay
 v1.x: beta versions, no menu's, bad gameplay

THANKS FOR DOWNLOADING Pipemania for ti-83,
The TEXAMEIJE z80 ASM programming team.

Watch for my other programs, especially my interrupt-programs that run
all the time when you use your calc: Screenmate,Belzeblub and Wallpaper
